package com.mindskip.xzs.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mindskip.xzs.domain.Department;
import com.mindskip.xzs.viewmodel.IdNameKV;
import com.mindskip.xzs.viewmodel.admin.dept.DeptTreeRes;

import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author guoguangkai
 * @since 2022/9/13
 */
public interface DepartmentService extends IService<Department> {
    DeptTreeRes queryDeptTree();
    List<IdNameKV> queryDeptKVListInCache(String keyword);

    List<IdNameKV> queryUserDeptKV(Integer userId);

    void updateDeptsKVInCache();
}
